package com.example.bootdemo.service;

import com.example.bootdemo.pojo.Role;
import com.example.bootdemo.pojo.User;
import com.example.bootdemo.pojo.UserRole;

public interface UserSecurityService {

    User saveUser(User user);

    void deleteByUsername(String username);

    Role saveRole(Role role);

    void deleteRoleByRoleId(String roleId);

    UserRole saveUserRole(UserRole userRole);

    void deleteUserRoleByUnionId(Long userId,String roleId);
}
